package cn.stronglink.assetmanage.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Tgb on 2018/6/13.
 * 类型
 */
@Entity
public class Type {
    @Id
    private Long type_id;           //主键id
    @Property
    private String id_;
    @Property
    private String name;
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getId_() {
        return this.id_;
    }
    public void setId_(String id_) {
        this.id_ = id_;
    }
    public Long getType_id() {
        return this.type_id;
    }
    public void setType_id(Long type_id) {
        this.type_id = type_id;
    }
    @Keep
    public Type(Long type_id, String id_, String name) {
        this.type_id = type_id;
        this.id_ = id_;
        this.name = name;
    }
    @Keep
    public Type() {
    }

    @Override
    public String toString() {
        return name;
    }
}
